using System;
using System.Collections.Generic;

namespace Hymans.Charles.JAudit.SyntaxNodes
{
	public class JavaMethod
	{
		public IList<JavaStatement> Statements
		{
			get;
			private set;
		}

		public JavaMethod(IList<JavaStatement> statements)
		{
			this.Statements = statements;
		}
		
		internal void Visit(IVisitor visitor)
		{
			foreach (JavaStatement statement in Statements)
			{
				statement.Visit(visitor);
			}
		}
	}
}

